package day0626;

public class Test13 {

    public static void main(String[] args) {
        System.out.println(calcBmi(1.71,  59));
    }

    static  String    calcBmi(double height, double weight){
        double bmi=weight/(height*height);
        if(bmi<18.5){
            return "太瘦了";
        }else if(18.5<bmi && bmi< 24){
            return "正常";
        }else if(24<bmi && bmi< 28){
            return "偏";
        }else{
            return "超重";
        }
    }



}
